package top.huxy.boot.service;

import top.huxy.boot.controller.admin.AdminHomeController;
import top.huxy.boot.model.dto.Pager;
import top.huxy.boot.model.vo.VONavSite;

import java.util.List;

/**
 * (NavSite)表服务接口
 *
 * @author HuXY
 * @since 2021-11-26 14:36:07
 */
public interface NavSiteService {
    List<VONavSite> getNavSiteList();

    void insert(AdminHomeController.DTOSite site);

    void updateSiteGroup(AdminHomeController.DTOEditGroup dtoEditGroup);

    void updateSite(AdminHomeController.DTOSite site);

    void moveGroup(String grp, String target, String type);

    void moveItem(Integer item, Integer target, String type);

    void delSiteGroup(Integer id);

    void delSite(Integer id);

    void saveHistorySite(Integer id, String userToken);

    List<VONavSite.NavItem> getHistorySite(Pager pager, String userToken);

    void removeAllHistory(String userToken);

    void removeSiteById(String userToken, String ids);
}
